import request from '@/utils/request'
import { CURDApiBase } from '../curd-api-base'

export default new class ProjectApi extends CURDApiBase {
  constructor () {
    super('/wms/api/project')
  }

  /** 导入排产计划 projectPlan */
  upload(data?: any) {
    return request({
      headers: {
        'content-Type': 'multipart/form-data'
      },
      url: `${this.baseUrl}Plan/import`,
      method: 'post',
      data
    })
  }

  changeBarCode(data: any) {
    return request({
      url: 'wms-order/api/order-goods/changeBarcode',
      method: 'post',
      data
    })
  }
}()
